//下载保存脚本，脚本需要缓存便于清除、更新
const msgCode = require("../config/messageConfig.js"), loger = require("../module/loger");

module.exports.run = (data, c) => {
    let cmd = data.json.toString().split(",");
	const fs = require("fs");
	fs.stat(__dirname + "\\..\\" + cmd[0], (err, stats)=>{
		if(err){
			loger.info(err);
			return;
		} 
		let cmdrun = require("../"+cmd[0]);
		cmdrun.run(cmd[1]);
		//global.sdObj.finish = 1;
	});
};